#ifndef TEMU_TRACE_H
#define TEMU_TRACE_H

#include "common.h"
#include <stdio.h>

#define TRACE buf_record(cpu.pc, op_dest->reg, reg_w(op_dest->reg))


void init_trace();

void buf_record(uint32_t pc, int reg_no, uint32_t data);

void write_record();

#endif //TEMU_TRACE_H
